import request from '@/utils/request'

//sku列表的接口
//  /admin/product/list/{page}/{limit} get
export const reqGetSkuList=(page,limit)=>request.get(`/admin/product/list/${page}/${limit}`)

// 上架
//  /admin/product/onSale/{skuId}  get
export const reqSale=skuId=>request.get(`/admin/product/onSale/${skuId}`)


// 下架
//  /admin/product/cancelSale/{skuId} get
export const reqSkuById=skuId=>request.get(`/admin/product/cancelSale/${skuId}`)

//获取SKU详情的接口
//  /admin/product/getSkuById/{skuId}  get
export const reqGetSkuDetails=skuId=>request.get(`/admin/product/getSkuById/${skuId}`)

